package com.gdglc.spring.biz.auth;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.y2.authprj.bean.auth.model.Page;
import com.y2.authprj.bean.auth.model.SysroleInfo;
import com.y2.authprj.bean.auth.vo.UserroleVo;
import com.y2.authprj.bean.auth.vo.showSysroleAndRoleAuthorityVo;
import com.y2.authprj.exception.BizException;

public interface ISysroleBiz {
	List<SysroleInfo> findAllSysrole();
	int addSysrole(SysroleInfo sysroleInfo);
	void deleteSysrole(int id);
	int updateSysrole(SysroleInfo sysroleInfo);
	List<showSysroleAndRoleAuthorityVo> findSysroleAndRoleAuthority();
	SysroleInfo findSysroleByRoleId(@Param("roleId") int roleId);
	SysroleInfo findSysroleByRoleId(String name);
	List<showSysroleAndRoleAuthorityVo> findSysroleAndRoleAuthorityBySysId(@Param("roleId") int roleId);

	
	
	SysroleInfo findById(int id);
	Page<SysroleInfo> showSysroleInfo(UserroleVo vo) throws BizException;


}
